From 2cc2a42cf3a8b80d1808534af7eb5631b6093720 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 6 Dec 2002 15:49:23 +0000 Subject: [PATCH] Include version number in binary and help output. --- gpsbabel/Makefile | 7 +++++-- gpsbabel/main.c | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gpsbabel/Makefile b/gpsbabel/Makefile index 421be7e71..003114d5b 100644 --- a/gpsbabel/Makefile +++ b/gpsbabel/Makefile @@ -19,6 +19,9 @@ all: gpsbabel gpsbabel: $(OBJS) $(CC) $(CFLAGS) $(OBJS) -o gpsbabel -lexpat -lm +main.o: + $(CC) -c $(CFLAGS) -DVERSION=\"$(VERSIOND)\" $< + clean: rm -f $(OBJS) gpsbabel gpsbabel.exe @@ -28,8 +31,8 @@ dep: make clean && make CC="gcc -MMD" && cat *.d */*.d > /tmp/dep echo Edit Makefile and bring in /tmp/dep -VERSIONU=1_0_0 -VERSIOND=1.0.0 +VERSIONU=1_1_0_pre1206 +VERSIOND=1.1.0_pre1206 release: rm -fr gpsbabel-$(VERSIOND) cvs export -r gpsbabel_$(VERSIONU) -d gpsbabel-$(VERSIOND) gpsbabel diff --git a/gpsbabel/main.c b/gpsbabel/main.c index f31940525..4e51dfce0 100644 --- a/gpsbabel/main.c +++ b/gpsbabel/main.c @@ -26,6 +26,7 @@ global_options global_opts; void usage(const char *pname) { + printf("GPSBabel Version %s. http://gpsbabel.sourceforge.net\n",VERSION ); printf("Usage: %s [-s] [-t|-w|-r] -i -f -o -F \n", pname); printf("Supported file types:\n"); disp_vecs(); -- 2.30.2